<template>
	<view>
		<text v-select>{{ title }}</text>
		<text>{{ store.count }}</text>
		<u-button @click="store.increment">测试</u-button>
		<u-button @click="login">网络测试</u-button>
		<!-- #ifndef MP-WEIXIN -->
		<u-button @click="cs">测试按钮</u-button>
		<!-- #endif -->
	</view>
</template>
<script setup lang="ts">
import { componentsStore } from '@/store/modules/components';
import { UserStore } from '@/store/modules/user';
// 获取全局挂载
const { appContext } = getCurrentInstance();
const globalProxy = appContext.config.globalProperties;
const store = componentsStore();
const user = UserStore();
const title = ref('Hello');
function login() {
	user.Login({
		username: 'admin',
		password: 'admin123',
		code: '',
		uuid: '',
	});
}
// #ifndef MP-WEIXIN
function cs() {
	globalProxy.$msg.show('消息提示');
}
// #endif
</script>

<style lang="scss">
@import './index.scss';
</style>
